#define _CRT_SECURE_NO_WARNINGS 1

#include"QueueClass.h"

void TestQueue()
{
    lwd::queue<int> q;
    q.push(1);
    q.push(2);
    q.push(3);
    q.push(4);
    q.push(5);

    while (!q.empty())
    {
        cout << q.front() << " ";
        q.pop();
    }
}

void TestQueuePush()
{
    lwd::queue<int> q;
    q.push(1);
    q.push(2);
    q.push(3);
    q.push(4);
    q.push(5);
    q.pop();

    while (!q.empty())
    {
        cout << q.front() << " ";
        q.pop();
    }
}

void TestQueueBack()
{
    lwd::queue<int> q;
    q.push(1);
    q.push(2);
    q.push(3);
    q.push(4);
    q.push(5);
    int ret = q.back();
    cout << ret << endl;
}

void TestQueueFront()
{
    lwd::queue<int> q;
    q.push(1);
    q.push(2);
    q.push(3);
    q.push(4);
    q.push(5);
    int ret = q.front();
    cout << ret << endl;
}

void TestQueueSize()
{
    lwd::queue<int> q;
    q.push(1);
    q.push(2);
    q.push(3);
    q.push(4);
    q.push(5);
    int ret = q.size();
    cout << ret << endl;
}

int main()
{
    TestQueueSize();
    return 0;
}